import React from 'react'

export default function LeftL(props) {
    

   
    return (
        <ul>
            {
                props.arr.map((item,index) => {
                    return (
                        <li key={item.id}
                        className={index==props.n?'select':''}
                         onClick={()=>props.changen(index,item.id)}>{item.catename}</li>
                    )
                })
            }
        </ul>

    )
}
